package com.ruoyi.pet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pet.mapper.PetDewormingMapper;
import com.ruoyi.pet.domain.PetDeworming;
import com.ruoyi.pet.service.IPetDewormingService;

/**
 * 宠物驱虫记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-01
 */
@Service
public class PetDewormingServiceImpl implements IPetDewormingService 
{
    @Autowired
    private PetDewormingMapper petDewormingMapper;

    /**
     * 查询宠物驱虫记录
     * 
     * @param id 宠物驱虫记录主键
     * @return 宠物驱虫记录
     */
    @Override
    public PetDeworming selectPetDewormingById(Long id)
    {
        return petDewormingMapper.selectPetDewormingById(id);
    }

    /**
     * 查询宠物驱虫记录列表
     * 
     * @param petDeworming 宠物驱虫记录
     * @return 宠物驱虫记录
     */
    @Override
    public List<PetDeworming> selectPetDewormingList(PetDeworming petDeworming)
    {
        return petDewormingMapper.selectPetDewormingList(petDeworming);
    }

    /**
     * 新增宠物驱虫记录
     * 
     * @param petDeworming 宠物驱虫记录
     * @return 结果
     */
    @Override
    public int insertPetDeworming(PetDeworming petDeworming)
    {
        return petDewormingMapper.insertPetDeworming(petDeworming);
    }

    /**
     * 修改宠物驱虫记录
     * 
     * @param petDeworming 宠物驱虫记录
     * @return 结果
     */
    @Override
    public int updatePetDeworming(PetDeworming petDeworming)
    {
        return petDewormingMapper.updatePetDeworming(petDeworming);
    }

    /**
     * 批量删除宠物驱虫记录
     * 
     * @param ids 需要删除的宠物驱虫记录主键
     * @return 结果
     */
    @Override
    public int deletePetDewormingByIds(Long[] ids)
    {
        return petDewormingMapper.deletePetDewormingByIds(ids);
    }

    /**
     * 删除宠物驱虫记录信息
     * 
     * @param id 宠物驱虫记录主键
     * @return 结果
     */
    @Override
    public int deletePetDewormingById(Long id)
    {
        return petDewormingMapper.deletePetDewormingById(id);
    }
}
